package com.meteor.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meteor.framework.common.base.AutoEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.meteor.user.enums.UserStatusEnum;

/**
 * 用户
 *
 * @author lynn
 * @date 2024/1/03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser extends AutoEntity<SysUser> {


    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "性别   0：男   1：女   2：未知")
    private Integer gender;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "机构ID")
    private String orgId;

    @Schema(description = "商户管理员   0：否   2：是")
    private Integer superAdmin;

    @Schema(description = "机构名称")
    @TableField(exist = false)
    private String orgName;

    @Schema(description = "用户类型   1：后台系统用户 2：移动端用户")
    private Integer userType;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "身份信息完善 1=已完善 2=未完善")
    private Integer cardStatus;

    @Schema(description = "生日")
    private String birthday;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "社区id")
    private String communityId;


}
